/*
  HALinput.h library for input in the washingmashine
 */

#ifndef HALinput_h
#define HALinput_h
#include <Centipede.h>;


class HALinput
{
public:
  HALinput(Centipede CS);
  void update();
  void clearChange();
  bool readTen();
  bool readFifty();
  bool readTwoHundred();
  bool readProgram();
  bool readStart();
  bool readClear();
  bool readDoor();
  bool readPressure();
  bool readSoap1();
  bool readSoap2();
  int readTemperature( void );
  int readWater( void );
  bool change;  
private:
  void checkChange();
  bool ten_tmp;
  bool fifty_tmp;
  bool twohundred_tmp;
  bool program_tmp;
  bool start_tmp;
  bool clear_tmp;
  bool ten_old;
  bool fifty_old;
  bool twohundred_old;
  bool program_old;
  bool start_old;
  bool clear_old;
  bool door;
  bool pressure;
  bool soap1;
  bool soap2;
  bool door_old;
  bool pressure_old;
  bool soap1_old;
  bool soap2_old;
  int temperature;
  int water;
  int temperature_old;
  int water_old;
  Centipede CS; 
};

#endif

